/*
 * @Author: 姚潘涛
 * @Date: 2024-04-08 20:36:40
 * @LastEditors: 姚潘涛
 * @LastEditTime: 2024-04-10 09:29:25
 * @FilePath:
 * /xict_ws/src/xcmg-intelligent-cockpit-three/src/xict_ui/src/xict_ui_driver/utils/baseimgsdk.cpp
 * @Description:
 *
 * Copyright (c) 2024 by pandaman, All Rights Reserved.
 */
#include "xict_ui_driver/utils/baseimgsdk.h"
#include "xict_ui_common/utils/config.h"
#include <QDebug>

namespace xict_ui_driver {

    DEFINE_SDK_SUB_FUNC(FrontImage, ImageMsgSub, front_image_sub_,
                        xict_ui_common::Config::GetInstance().GetYaml("ui",
                                                                      "front"),
                        ImageCallback, front_image_callback_,
                        xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(BackImage, ImageMsgSub, back_image_sub_,
                        xict_ui_common::Config::GetInstance().GetYaml("ui",
                                                                      "back"),
                        ImageCallback, back_image_callback_,
                        xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(LeftImage, ImageMsgSub, left_image_sub_,
                        xict_ui_common::Config::GetInstance().GetYaml("ui",
                                                                      "left"),
                        ImageCallback, left_image_callback_,
                        xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(RightImage, ImageMsgSub, right_image_sub_,
                        xict_ui_common::Config::GetInstance().GetYaml("ui",
                                                                      "right"),
                        ImageCallback, right_image_callback_,
                        xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(
        OverLookImage, ImageMsgSub, overlook_image_sub_,
        xict_ui_common::Config::GetInstance().GetYaml("ui", "overlook"),
        ImageCallback, overlook_image_callback_, xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(
        FrontBladeImage, ImageMsgSub, front_blade_image_sub_,
        xict_ui_common::Config::GetInstance().GetYaml("ui", "front_blade"),
        ImageCallback, front_blade_image_callback_, xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(
        BackBladeImage, ImageMsgSub, back_blade_image_sub_,
        xict_ui_common::Config::GetInstance().GetYaml("ui", "back_blade"),
        ImageCallback, back_blade_image_callback_, xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(
        FrontWheelImage, ImageMsgSub, front_wheel_image_sub_,
        xict_ui_common::Config::GetInstance().GetYaml("ui", "front_wheel"),
        ImageCallback, front_wheel_image_callback_, xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(
        BladeMRImage, ImageMsgSub, blade_mr_image_sub_,
        xict_ui_common::Config::GetInstance().GetYaml("ui", "blade_mr"),
        ImageCallback, blade_mr_image_callback_, xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(
        FrontLineImage, ImageMsgSub, front_line_image_sub_,
        xict_ui_common::Config::GetInstance().GetYaml("ui", "front_line"),
        ImageCallback, front_line_image_callback_, xcmg_proto::OpencvImage)

    DEFINE_SDK_SUB_FUNC(
        BackLineImage, ImageMsgSub, back_line_image_sub_,
        xict_ui_common::Config::GetInstance().GetYaml("ui", "back_line"),
        ImageCallback, back_line_image_callback_, xcmg_proto::OpencvImage)

}   // namespace xict_ui_driver
